#include<bits/stdc++.h>
using namespace std;
struct istr{
    char str[1001];
    int length;
    int order;
};
int main() {
    int n;
    istr d[21];
    bool a[1001]={0};
    scanf("%d",&n);
    for (int i=1;i<=n;i++) {
        scanf("%s",&d[i].str);
        d[i].length=strlen(d[i].str);
        d[i].order=i;
        a[d[i].length]=1;
    }
    
}